home *** CD-ROM | disk | FTP | other *** search
/ Team Palmtops 7 / Palmtops_numero07.iso / WinCE / SDKWindowsCE / HandHeldPCPro30 / sdk.exe / Jupiter SDK / data1.cab / MFC_Samples / maths / mathsctl.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-02-19  |  1.8 KB  |  61 lines

  1. #ifndef __MATHSCTL_H__
  2. #define __MATHSCTL_H__
  3.  
  4. // Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++
  5.  
  6. // NOTE: Do not modify the contents of this file.  If this class is regenerated by
  7. //  Microsoft Visual C++, your modifications will be overwritten.
  8.  
  9. /////////////////////////////////////////////////////////////////////////////
  10. // CMathsCtl wrapper class
  11.  
  12. class CMathsCtl : public CWnd
  13. {
  14. protected:
  15.     DECLARE_DYNCREATE(CMathsCtl)
  16. public:
  17.     CLSID const& GetClsid()
  18.     {
  19.          static CLSID const clsid1
  20.             = { 0x183cb003, 0xbeed, 0x11ce, { 0x96, 0x11, 0, 0xaa, 0, 0x4a, 0x75, 0xcf } };
  21.         static CLSID const clsid2
  22.             = { 0x181CB003, 0xbeed, 0x11ce, { 0x96, 0x11, 0x0, 0xaa, 0x0, 0x4a, 0x75, 0xcf } };
  23.         static CLSID const clsid3
  24.             = { 0x182cb003, 0xbeed, 0x11ce, { 0x96, 0x11, 0x0, 0xaa, 0x0, 0x4a, 0x75, 0xcf } };
  25.         if (m_idControl == 0)
  26.             return clsid1;
  27.         else if (m_idControl == 1)
  28.             return clsid2;
  29.         return clsid3;
  30.     }
  31.     virtual BOOL Create(LPCTSTR lpszClassName,
  32.         LPCTSTR lpszWindowName, DWORD dwStyle,
  33.         const RECT& rect,
  34.         CWnd* pParentWnd, UINT nID,
  35.         CCreateContext* pContext = NULL)
  36.     { return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID); }
  37.  
  38.     BOOL Create(LPCTSTR lpszWindowName, DWORD dwStyle,
  39.         const RECT& rect, CWnd* pParentWnd, UINT nID,
  40.         CFile* pPersist = NULL, BOOL bStorage = FALSE,
  41.         BSTR bstrLicKey = NULL)
  42.     { return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID,
  43.         pPersist, bStorage, bstrLicKey); }
  44.  
  45. // Attributes
  46. public:
  47.     OLE_COLOR GetBackColor();
  48.     void SetBackColor(OLE_COLOR);
  49.     OLE_COLOR GetForeColor();
  50.     void SetForeColor(OLE_COLOR);
  51.     BOOL GetOpposite();
  52.     void SetOpposite(BOOL);
  53.  
  54. // Operations
  55. public:
  56.     int m_idControl;
  57.     void AboutBox();
  58. };
  59.  
  60. #endif // __MATHSCTL_H__
  61.